package com.chaos.service.impl;/*
 * Date: 2023/10/13 7:57 AM
 * Function():
 * Author: Chao
 */

import com.chaos.dao.CartoonMapper;
import com.chaos.domain.Cartoon;
import com.chaos.service.CartoonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cartoonService")
public class CartoonServiceImpl implements CartoonService {

    @Autowired
    private CartoonMapper cartoonMapper;

    @Override
    public Cartoon selectByPrimaryKey(Integer id) {
        return cartoonMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Cartoon> selectAll(){
        return cartoonMapper.selectAll();
    };

    @Override
    public int updateByPrimaryKey(Cartoon cartoon){
        return cartoonMapper.updateByPrimaryKey(cartoon);
    };
}
